//
//  ConcentratedRequest.swift
//  XFRequestDemo
//
//  Created by 雪飞 on 2021/10/28.
//

import Foundation
import XFRequest

/// 新闻模块
struct newsapi {
    /// 获取新闻列表
    static func newslist(type:newstype)-> RequestAPI{
        var ntype = "top"
        if(type == .Model){
            ntype = "yule"
        }else{
            ntype = "tiyu"
        }
        
        let par = ["type": ntype,"key":key]
        
        return RequestAPI(parameters: par)
    }
}
